package com.cos.services.impl;

import com.cos.dao.SysRoleMapper;
import com.cos.entity.SysRole;
import com.cos.services.SysRoleServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: COS
 * @time: 2021/11/23 10:01
 * @description:
 */
@Service
public class SysRoleServicesImpl implements SysRoleServices {
    @Autowired
    private SysRoleMapper roleMapper;
    @Override
    public List<SysRole> getUserRole(int uid) {
        return roleMapper.getUserRole(uid);
    }

    @Override
    public List<SysRole> getUserRoleByName(String uname) {
        return roleMapper.getUserRoleByName(uname);
    }
}
